#ifndef LOGIN_H
#define LOGIN_H

#include "stable.h"

class MainWindow;

class Login : public QWidget
{
    Q_OBJECT
public:
    Login( MainWindow* parent, QList<Buceador*>* buceadores );
protected:
    void showEvent( QShowEvent* /*event*/ ) { _buceadoreslist->setFocus(); }
    void keyPressEvent( QKeyEvent* event );
    void paintEvent( QPaintEvent* event );
private:
    QComboBox* _buceadoreslist;
    QPushButton* _login;
    MainWindow* _mainwindow;
    QTimeLine* _timeline;
private slots:
    void buceadorIndexChanged( int index );
    void login();
    void fadedOut();
};

#endif // LOGIN_H
